package com.hc.weather.dao;

import com.hc.weather.domain.City;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository //该注释表示当前接口是一个访问数据库的接口,然后我们委托spring boot帮忙实例化它
public interface CityRepository extends JpaRepository<City,Integer> {
        //controller-->service-->dao
    List<City> findByCityLike(String city);
}
